class OutToNewsController < BaseController
  layout false
 # 校园要闻
  def call_xxzy_xyyw_2013
# 校园要闻、大图新闻
    @school_important_news = News.index_news.where(is_important_news: 1).where(:enable =>true).order("ordinal desc").order("pubtime desc").limit(6)
  end
  # 校园快讯
  def call_xxzy_xykx_2013
    # 校园要讯、通知公告
    @school_message_news = News.index_news.where(is_important_news: 0).where(:enable =>true).order("ordinal desc").order("pubtime desc").limit(6)
  end
  #  通知公告
  def call_xxzy_tzgg_2013
    @notifies = Notify.where(:check => 2).order("pubtime desc").limit(6)
  end
  
  
  #  通知公告
  def call_xxzy_tzgg_2
    @notifies = Notify.where(:check => 2).order("pubtime desc").limit(6)
  end
  

  # 讲座报告
  def call_xxzy_jzbg_2013
    @reports = Report.where(:check => 2).order("time desc").limit(6)
  end

  #  媒体看华理
  def call_xxzy_mthl_2013
    @new_medium_entrance = News.where(category_id: NewsHelper::MTHL_CATEGORY).order("pubtime desc").limit(6)
  end
end
